package com.frank.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frank.subject.infra.basic.entity.SubjectJudge;
import com.frank.subject.infra.basic.mapper.SubjectJudgeMapper;
import com.frank.subject.infra.basic.service.SubjectJudgeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 判断题(SubjectJudge)表服务实现类
 *
 * @author makejava
 * @since 2024-01-23 17:23:02
 */
@Service("subjectJudgeService")
public class SubjectJudgeServiceImpl extends ServiceImpl<SubjectJudgeMapper, SubjectJudge> implements SubjectJudgeService {

    private final SubjectJudgeMapper subjectJudgeMapper;

    public SubjectJudgeServiceImpl(SubjectJudgeMapper subjectJudgeMapper) {
        this.subjectJudgeMapper = subjectJudgeMapper;
    }

    @Override
    public List<SubjectJudge> queryBySubjectId(Long subjectId) {
        return this.subjectJudgeMapper.queryBySubjectId(subjectId);
    }
}
